PFont fonte;

void setup() {
  textSize(16);
  size(640,640);
  //String[] fontList = PFont.list();
  //println(fontList);
  fonte = createFont("DejaVu Sans Mono", 32);
  textFont(fonte,48);
}

void draw() {
  int tam;
  background(180);
  stroke(0,0,0);
  textFont(fonte,20);
  text(0,10,25);
  for(int i=10; i<max(width,height);i+=10) {
    if (i%100==0) { 
      tam = 20;
      text(i,i+3,25);
      text(i,10,i+20);
    }
    else {
      tam = 7;
    }  
    line(i,0,i,tam);
    line(0,i,tam,i);
  }
  stroke(255,0,0);
  line(mouseX,0,mouseX,height);
  stroke(0,0,255);
  line(0,mouseY,width,mouseY);
  textFont(fonte,48);
  text(mouseX+","+mouseY, mouseX, mouseY);  
}
